<template>
  <div class="main-wrapper">
    <div class="flex-container" style="height:100%">
      <sceneLeft run_mode="worldsim" :fromCreateTaskPage="fromCreateTaskPage"/>
      <worldsimRight :fromCreateTaskPage="fromCreateTaskPage"/>
    </div>
  </div>
</template>

<script>
import sceneLeft from '../components/sceneLeft.vue'
import worldsimRight from './components/worldsimRight.vue'

export default {
  components: { sceneLeft, worldsimRight },
  props:{
    fromCreateTaskPage: Boolean
  },
  created(){
    /* 
      初始化时：
      1. 将默认值置为worldsim
      2. 默认取category的数据
      3. 将之前点击选中的自定义组的id置为''
    */
    this.$store.dispatch('scene/updateTreeIdForWorldsim', '')  
    this.$store.dispatch('scene/updateIsCommonCategory', true)
    this.$store.dispatch('scene/updateCheckedCustomGroup', {})
  }
}
</script>
